<nb-list>
  <nb-list-item>
    <user-search></user-search>
  </nb-list-item>
  <nb-list-item *ngIf="!list.length">
    <div class="empty-message">空空如也~</div>
  </nb-list-item>
  <nb-list-item
    *ngFor="let user of list"
    [class.active]="isActive(user.uid)"
    (click)="getChat(user.uid)"
  >
    <div class="user-container">
      <nb-user [picture]="user?.avatar" [name]="user?.name" [title]="user?.message"></nb-user>
      <div class="last-time">{{user?.time}}</div>
      <nb-icon icon="close-outline" class="close" (click)="delete(user.uid)"></nb-icon>
    </div>
  </nb-list-item>
</nb-list>
